#include <iostream>
#include <fstream>
#include <cctype>
using namespace std;


#ifndef _UTF8_STRING_
#define _UTF8_STRING_

class utf8String{
	private:
		char *str;

	public:
		utf8String(int buffer);
		//==
		int length(void);
		void readFromFile(FILE *h);
		void printAscii(void);
};

utf8String::utf8String(int buffer){
	str = (char*)malloc(buffer);
}

void utf8String::readFromFile(FILE *h){
	char *b;
	b = (char*)malloc(1);
	for(int i=0;((*b != 0x20) && (*b != 0x20));i++){
		fread(b,1,1,h);
		str[i] = *b;
	}
}

void utf8String::printAscii(void){
	printf("%s\n",str);
}


#endif
